package com.ruoyi.web.controller.project.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 车辆信息对象 t_vehicle
 * 
 * @author ruoyi
 * @date 2025-06-27
 */
public class TVehicle extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 车辆唯一标识ID */
    private String vehicleId;

    /** 车辆编号(如车牌号) */
    @Excel(name = "车辆编号",sort = 2)
    private String vehicleNumber;

    /** 车辆状态(0下架,1正常) */
    @Excel(name = "车辆状态",dictType = "vehicle_status",sort = 3)
    private Long status;

    /** 归属人用户ID */
//    @Excel(name = "归属人用户ID")
    private Long userId;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd",sort = 1)
    private Date vehicleDate;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
//    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
//    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /**
     * 外表字段
     * @param recordId
     */
    @Excel(name = "领养人", width = 30,sort = 4)
    private String nickName;

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    /**
     * 非持久化字段
     * @return
     */
    private List<Date> vehicleDateRange;

    public List<Date> getVehicleDateRange() {
        return vehicleDateRange;
    }

    public void setVehicleDateRange(List<Date> vehicleDateRange) {
        this.vehicleDateRange = vehicleDateRange;
    }

    public Date getVehicleDate() {
        return vehicleDate;
    }

    public void setVehicleDate(Date vehicleDate) {
        this.vehicleDate = vehicleDate;
    }

    public void setVehicleId(String vehicleId)
    {
        this.vehicleId = vehicleId;
    }

    public String getVehicleId() 
    {
        return vehicleId;
    }

    public void setVehicleNumber(String vehicleNumber) 
    {
        this.vehicleNumber = vehicleNumber;
    }

    public String getVehicleNumber() 
    {
        return vehicleNumber;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return "TVehicle{" +
                "vehicleId='" + vehicleId + '\'' +
                ", vehicleNumber='" + vehicleNumber + '\'' +
                ", status=" + status +
                ", userId=" + userId +
                ", vehicleDate=" + vehicleDate +
                ", createdAt=" + createdAt +
                ", updatedAt=" + updatedAt +
                '}';
    }
}
